<ui:composition
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a="https://ajax4jsf.dev.java.net/ajax"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:rich="http://richfaces.ajax4jsf.org/rich"
      xmlns:s="http://jboss.com/products/seam/taglib"
      template="../layout.xhtml">

   <ui:define name="body">
      <ui:include src="../tags/content-display.xhtml">
         <ui:param name="content" value="#{contentCreator.content}" />
         <ui:param name="isArticle" value="#{not contentCreator.file}" />
      </ui:include>

      <h:form id="contentConfirmForm">
         <s:validateAll>
            Datum objave:
            <h:inputText value="#{pubContent.publishDate}">
               <s:convertDateTime type="date" dateStyle="short"/>
               <a:support event="onblur" reRender="contentConfirmForm" bypassUpdates="true" />
            </h:inputText>
            <h:messages/>

            <h4>Objavi?</h4>
            <h:commandButton value="Objavi" action="#{contentPublishing.commitPublish}" />
            <s:button value="Prekliči" action="#{contentPublishing.cancelPublish}" />
         </s:validateAll>
      </h:form>

   </ui:define>

</ui:composition>
